package com.soilflow.info.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.soilflow.common.domain.SysConsultation;
import com.soilflow.common.domain.WechatMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 菜单Mapper接口
 * 
 * @author party
 * @date 2023-09-26
 */
@Mapper
public interface WechatMenuMapper extends BaseMapper<WechatMenu>{
    /**
     * 查询菜单
     * 
     * @param id 菜单主键
     * @return 菜单
     */
    public WechatMenu selectWechatMenuById(Long id);

    /**
     * 查询菜单列表
     * 
     * @param wechatMenu 菜单
     * @return 菜单集合
     */
    public List<WechatMenu> selectWechatMenuList(WechatMenu wechatMenu);

    /**
     * 新增菜单
     * 
     * @param wechatMenu 菜单
     * @return 结果
     */
    public int insertWechatMenu(WechatMenu wechatMenu);

    /**
     * 修改菜单
     * 
     * @param wechatMenu 菜单
     * @return 结果
     */
    public int updateWechatMenu(WechatMenu wechatMenu);

    /**
     * 删除菜单
     * 
     * @param id 菜单主键
     * @return 结果
     */
    public int deleteWechatMenuById(Long id);

    /**
     * 批量删除菜单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWechatMenuByIds(Long[] ids);
}
